|
Public Member Functions |
| | XFcQuaternion () |
| | Empty constructor.
|
| | XFcQuaternion (const XFcQuaternion &aQuat) |
| | Copy constructor.
|
| | XFcQuaternion (const XFcVector3 &aVec) |
| | Construction from a vector.
|
| | XFcQuaternion (const REAL aX, const REAL aY, const REAL aZ, const REAL aW) |
| | Construction from 4 values.
|
| XFcQuaternion & | operator+= (const XFcQuaternion &aQuat) |
| | Adds components of another quaternion to this quaternion.
|
| XFcQuaternion | operator+ (const XFcQuaternion &aQuat) const |
| | Creates a new quaternion which contains the result of this + another quaternion.
|
| XFcQuaternion & | operator-= (const XFcQuaternion &aQuat) |
| | Substracts components of another quaternion from this quaternion.
|
| XFcQuaternion | operator- (const XFcQuaternion &aQuat) const |
| | Creates a new quaternion which contains the result of this - another quaternion.
|
| XFcQuaternion | operator *= (const INT32 aArg) |
| | Multiplies this quaternion by an INT32.
|
| XFcQuaternion | operator *= (const FLOAT32 aArg) |
| | Multiplies this quaternion by a FLOAT32.
|
| XFcQuaternion | operator * (const INT32 aArg) const |
| | Creates a new quaternion which contains the result of this * INT32.
|
| XFcQuaternion | operator * (const FLOAT32 aArg) const |
| | Creates a new quaternion which contains the result of this * FLOAT32.
|
| XFcQuaternion | operator/= (const INT32 aArg) |
| | Divides this quaternion by an INT32.
|
| XFcQuaternion | operator/= (const FLOAT32 aArg) |
| | Divides this quaternion by an FLOAT32.
|
| XFcQuaternion | operator/ (const INT32 aArg) const |
| | Creates a new quaternion which contains the result of this / INT32.
|
| XFcQuaternion | operator/ (const FLOAT32 aArg) const |
| | Creates a new quaternion which contains the result of this / FLOAT32.
|
| XFcQuaternion | operator *= (const REAL &aArg) |
| XFcQuaternion | operator * (const REAL &aArg) const |
| XFcQuaternion | operator/= (const REAL &aArg) |
| XFcQuaternion | operator/ (const REAL &aArg) const |
| XFcQuaternion | operator * (const XFcQuaternion &aQuat) const |
| | Multiplication with another quaternion.
|
| XFcQuaternion & | operator *= (const XFcQuaternion &aQuat) |
| | Multiplication with another quaternion.
|
| XFcQuaternion | operator/ (const XFcQuaternion &aQuat) const |
| | Division with another quaternion.
|
| XFcQuaternion & | operator/= (const XFcQuaternion &aQuat) |
| | Division with another quaternion.
|
| REAL | normal () |
| | Calculates the normal of the quaterion (x^2+y^2+z^2+w^2).
|
| REAL | length () |
| | Calculates the length of the quaternion.
|
| void | normalize () |
| | Normalizes a quaternion to unit length.
|
| void | conjugate () |
| | Conjugates the quaternion (negates x,y,z).
|
| void | inverse () |
| | Inverses the quaternion (q^-1 = q^* / N(q)).
|
Public Attributes |
| REAL | x |
| | X-component of the rotation.
|
| REAL | y |
| | Y-component of the rotation.
|
| REAL | z |
| | Z-component of the rotation.
|
| REAL | w |
| | W-component of the rotation.
|
Friends |
| XFcQuaternion | operator * (const INT32 aArg, const XFcQuaternion &aQuat) |
| | Creates a new quaternion which contains the result of INT32 * this.
|
| XFcQuaternion | operator * (const FLOAT32 aArg, const XFcQuaternion &aQuat) |
| | Creates a new quaternion which contains the result of FLOAT32 * this.
|
| XFcQuaternion | operator/ (const INT32 aArg, const XFcQuaternion &aQuat) |
| | Creates a new quaternion which contains the result of INT32 / this.
|
| XFcQuaternion | operator/ (const FLOAT32 aArg, const XFcQuaternion &aQuat) |
| | Creates a new quaternion which contains the result of FLOAT32 / this.
|
| XFcQuaternion | operator * (const REAL &aArg, const XFcQuaternion &aQuat) |
| XFcQuaternion | operator/ (const REAL &aArg, const XFcQuaternion &aQuat) |
Provides tools to store and manipulate rotation stored into a quaternion.